package org.aswing;

extern class JTree extends Container, implements Viewportable, implements org.aswing.event.TreeModelListener, implements org.aswing.event.CellEditorListener {
	function new(?p0 : org.aswing.tree.TreeModel) : Void;
	function addSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function addSelectionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function addSelectionPath(p0 : org.aswing.tree.TreePath, ?p1 : Bool) : Void;
	function addSelectionPaths(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function addSelectionRow(p0 : Int, ?p1 : Bool) : Void;
	function addSelectionRows(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function addStateListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function cancelEditing() : Void;
	function clearSelection(?p0 : Bool) : Void;
	function collapsePath(p0 : org.aswing.tree.TreePath) : Void;
	function collapseRow(p0 : Int) : Void;
	function editingCanceled(p0 : CellEditor) : Void;
	function editingStopped(p0 : CellEditor) : Void;
	function expandPath(p0 : org.aswing.tree.TreePath) : Void;
	function expandRow(p0 : Int) : Void;
	function fireTreeCollapsed(p0 : org.aswing.tree.TreePath) : Void;
	function fireTreeExpanded(p0 : org.aswing.tree.TreePath) : Void;
	function fireTreeWillCollapse(p0 : org.aswing.tree.TreePath) : Void;
	function fireTreeWillExpand(p0 : org.aswing.tree.TreePath) : Void;
	function getAnchorSelectionPath() : org.aswing.tree.TreePath;
	function getCellEditor() : org.aswing.tree.TreeCellEditor;
	function getCellFactory() : org.aswing.tree.TreeCellFactory;
	function getClosestPathForLocation(p0 : Int, p1 : Int) : org.aswing.tree.TreePath;
	function getClosestRowForLocation(p0 : Int, p1 : Int) : Int;
	function getEditingPath() : org.aswing.tree.TreePath;
	function getExpandedDescendants(p0 : org.aswing.tree.TreePath) : Array<Dynamic>;
	function getExtentSize() : org.aswing.geom.IntDimension;
	function getFixedCellWidth() : Int;
	function getHorizontalBlockIncrement() : Int;
	function getHorizontalUnitIncrement() : Int;
	function getLastSelectedPathComponent() : Dynamic;
	function getLeadSelectionPath() : org.aswing.tree.TreePath;
	function getLeadSelectionRow() : Int;
	function getLogicLocationFromPixelLocation(p0 : org.aswing.geom.IntPoint) : org.aswing.geom.IntPoint;
	function getMaxSelectionRow() : Int;
	function getMinSelectionRow() : Int;
	function getModel() : org.aswing.tree.TreeModel;
	function getMousePointedPath() : org.aswing.tree.TreePath;
	function getPathBounds(p0 : org.aswing.tree.TreePath) : org.aswing.geom.IntRectangle;
	function getPathForLocation(p0 : Int, p1 : Int) : org.aswing.tree.TreePath;
	function getPathForRow(p0 : Int) : org.aswing.tree.TreePath;
	function getPixelLocationFromLogicLocation(p0 : org.aswing.geom.IntPoint) : org.aswing.geom.IntPoint;
	function getRowBounds(p0 : Int) : org.aswing.geom.IntRectangle;
	function getRowCount() : Int;
	function getRowForLocation(p0 : Int, p1 : Int) : Int;
	function getRowForPath(p0 : org.aswing.tree.TreePath) : Int;
	function getRowHeight() : Int;
	function getSelectionBackground() : ASColor;
	function getSelectionCount() : Int;
	function getSelectionForeground() : ASColor;
	function getSelectionModel() : org.aswing.tree.TreeSelectionModel;
	function getSelectionPath() : org.aswing.tree.TreePath;
	function getSelectionPaths() : Array<Dynamic>;
	function getSelectionRow() : Int;
	function getSelectionRows() : Array<Dynamic>;
	function getToggleClickCount() : Int;
	function getTreeUI() : org.aswing.plaf.TreeUI;
	function getVerticalBlockIncrement() : Int;
	function getVerticalUnitIncrement() : Int;
	function getViewPosition() : org.aswing.geom.IntPoint;
	function getViewSize() : org.aswing.geom.IntDimension;
	function getViewportPane() : Component;
	function getVisibleRect() : org.aswing.geom.IntRectangle;
	function getVisibleRowCount() : Int;
	function hasBeenExpanded(p0 : org.aswing.tree.TreePath) : Bool;
	function isCollapsed(p0 : org.aswing.tree.TreePath) : Bool;
	function isCollapsedOfRow(p0 : Int) : Bool;
	function isEditable() : Bool;
	function isEditing() : Bool;
	function isExpanded(p0 : org.aswing.tree.TreePath) : Bool;
	function isExpandedOfRow(p0 : Int) : Bool;
	function isExpandsSelectedPaths() : Bool;
	function isInvokesStopCellEditing() : Bool;
	function isPathEditable(p0 : org.aswing.tree.TreePath) : Bool;
	function isPathSelected(p0 : org.aswing.tree.TreePath) : Bool;
	function isPathVisible(p0 : org.aswing.tree.TreePath) : Bool;
	function isRootVisible() : Bool;
	function isRowHeightSet() : Bool;
	function isRowSelected(p0 : Int) : Bool;
	function isScrollsOnExpand() : Bool;
	function isScrollsOnExpandSet() : Bool;
	function isSelectionEmpty() : Bool;
	function makePathVisible(p0 : org.aswing.tree.TreePath) : Void;
	function removeDescendantSelectedPathsWithEvent(p0 : org.aswing.event.TreeModelEvent) : Void;
	function removeSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function removeSelectionListener(p0 : Dynamic) : Void;
	function removeSelectionPath(p0 : org.aswing.tree.TreePath, ?p1 : Bool) : Void;
	function removeSelectionPaths(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function removeSelectionRow(p0 : Int, ?p1 : Bool) : Void;
	function removeSelectionRows(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function removeStateListener(p0 : Dynamic) : Void;
	function scrollPathToVisible(p0 : org.aswing.tree.TreePath) : Void;
	function scrollRectToVisible(p0 : org.aswing.geom.IntRectangle, ?p1 : Bool) : Void;
	function scrollRowToVisible(p0 : Int) : Void;
	function setAnchorSelectionPath(p0 : org.aswing.tree.TreePath) : Void;
	function setCellEditor(p0 : org.aswing.tree.TreeCellEditor) : Void;
	function setCellFactory(p0 : org.aswing.tree.TreeCellFactory) : Void;
	function setEditable(p0 : Bool) : Void;
	function setExpandsSelectedPaths(p0 : Bool) : Void;
	function setFixedCellWidth(p0 : Int) : Void;
	function setHorizontalBlockIncrement(p0 : Int) : Void;
	function setHorizontalUnitIncrement(p0 : Int) : Void;
	function setInvokesStopCellEditing(p0 : Bool) : Void;
	function setLeadSelectionPath(p0 : org.aswing.tree.TreePath) : Void;
	function setModel(p0 : org.aswing.tree.TreeModel) : Void;
	function setRootVisible(p0 : Bool) : Void;
	function setRowHeight(p0 : Int) : Void;
	function setRowHeightSet(p0 : Bool) : Void;
	function setScrollsOnExpand(p0 : Bool) : Void;
	function setScrollsOnExpandSet(p0 : Bool) : Void;
	function setSelectionBackground(p0 : ASColor) : Void;
	function setSelectionForeground(p0 : ASColor) : Void;
	function setSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function setSelectionMode(p0 : Int) : Void;
	function setSelectionModel(p0 : org.aswing.tree.TreeSelectionModel) : Void;
	function setSelectionPath(p0 : org.aswing.tree.TreePath, ?p1 : Bool) : Void;
	function setSelectionPaths(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function setSelectionRow(p0 : Int, ?p1 : Bool) : Void;
	function setSelectionRows(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function setToggleClickCount(p0 : Int) : Void;
	function setVerticalBlockIncrement(p0 : Int) : Void;
	function setVerticalUnitIncrement(p0 : Int) : Void;
	function setViewPosition(p0 : org.aswing.geom.IntPoint, ?p1 : Bool) : Void;
	function setViewportTestSize(p0 : org.aswing.geom.IntDimension) : Void;
	function setVisibleRowCount(p0 : Int) : Void;
	function startEditingAtPath(p0 : org.aswing.tree.TreePath) : Void;
	function stopEditing() : Bool;
	function treeDidChange() : Void;
	function treeNodesChanged(p0 : org.aswing.event.TreeModelEvent) : Void;
	function treeNodesInserted(p0 : org.aswing.event.TreeModelEvent) : Void;
	function treeNodesRemoved(p0 : org.aswing.event.TreeModelEvent) : Void;
	function treeStructureChanged(p0 : org.aswing.event.TreeModelEvent) : Void;
	private function expandRoot() : Void;
	private function firePropertyChange(p0 : String, p1 : Dynamic, p2 : Dynamic) : Void;
	private function fireStateChanged(?p0 : Bool) : Void;
	private function getModelIndexsForPath(p0 : org.aswing.tree.TreePath) : Array<Dynamic>;
	private function getPathForIndexs(p0 : Array<Dynamic>) : org.aswing.tree.TreePath;
	private function setExpandedState(p0 : org.aswing.tree.TreePath, p1 : Bool) : Void;
	static var ANCHOR_SELECTION_PATH_PROPERTY : String;
	static var AUTO_INCREMENT : Int;
	static var CELL_EDITOR_PROPERTY : String;
	static var CELL_FACTORY_PROPERTY : String;
	static var CONTIGUOUS_TREE_SELECTION : Int;
	static var DISCONTIGUOUS_TREE_SELECTION : Int;
	static var EDITABLE_PROPERTY : String;
	static var EXPANDS_SELECTED_PATHS_PROPERTY : String;
	static var FONT_PROPERTY : String;
	static var INVOKES_STOP_CELL_EDITING_PROPERTY : String;
	static var LEAD_SELECTION_PATH_PROPERTY : String;
	static var ROOT_VISIBLE_PROPERTY : String;
	static var ROW_HEIGHT_PROPERTY : String;
	static var SCROLLS_ON_EXPAND_PROPERTY : String;
	static var SELECTION_MODEL_PROPERTY : String;
	static var SINGLE_TREE_SELECTION : Int;
	static var TOGGLE_CLICK_COUNT_PROPERTY : String;
	static var TREE_MODEL_PROPERTY : String;
	static var VISIBLE_ROW_COUNT_PROPERTY : String;
}
